<!-- /* Description for file.
 * 项目状态列表
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/projectstates
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0612
 * @lastmodified  张海杰2011年0613
 */
 -->



<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
//print_r($customertypes);
?>
<script type="text/javascript">
	//删除多个
	function getDelStr() {
		$("#action").val("Del");
		
		var delArr = $("#f2 :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要删除的项!");
			return;
		}
		if(!confirm("确定删除?"))
		{
			return;
		}
		var str = "";
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		//window.alert(str);
		$("#delStr").val(str);
		//window.alert($("#delStr").val());
		$("#f2").submit();
	}
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('客户管理');//一级目录
										   echo '>';?>
										   <?php echo __('联系人');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('联系日志',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
		<?php echo $form->create('Companymanage',array('action'=>'delcontacts','type'=> 'post','id'=>'f2'));?>
		<?php echo $form->hidden('delStr',array('name'=>'id','id'=>'delStr'));?>
		<?php echo $form->hidden('linkmanid',array('name'=>'linkmanid','id'=>'linkmanid','default'=>$linkmanidArray[0]));?>
<div class="actions"  id="notices-actions">
	<ul>
		<li>
			<a style="float:left" href="<?php echo ROOT_WEB_PATH; ?>/companymanages/savecontact/<?php echo $copid."/".$linkmanidArray[0];?>" >
			<?php echo $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0'));?>&nbsp;新增</a>
			<?php //echo $html->link( $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0')), "/companymanages/savecontact/$copid/".$linkmanidArray[0], null,null,array('escape'=>false));  ?>
 					<!--  __('Add', true) 增加 -->
		</li>
		<li>
			<a onclick=getDelStr()><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0',
		 									'onclick'=>'getDelStr()'));?>批量删除</a>
		</li>
		
	</ul>
</div>

<!-- 项目状态列表 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
	<th width="70px"><?php echo __('Selected');?></th>
		<th ><?php echo __('编号');?></th>
		<th ><?php echo __('联系人');?></th>
		<th ><?php echo __('顾问');?></th>
		<th ><?php echo __('联系时间');?></th>
		<th ><?php echo __('具体内容');?></th>
		<th ><?php echo __('备注');?></th>
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php 
	foreach ($linklogData as $data): 
	
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>		
			<?php echo $form->checkbox($data['Contact']['id'], array('value' => $data['Contact']['id']));?>
			</td>
			<td>
				<?php //echo $html->link($data['Contact']['contactCode'], '/Contacts/initProjectManage/'.$data['Contact']['id'], $data['Contact']['id'],null,array('escape'=>false));  ?> 
				<?php echo $data['Contact']['id'];?>
			</td>
			<td><?php echo $data['Linkman']['linkman']; ?></td>
			<td>
				<?php echo $data['Contact']['advisor']; ?>
				<?php //echo $html->link( $data['Contact']['projectCompany'], '/channelmanages/channelmanagemessage/'.$data['Companymanage']['id'], null,null,
					//array('escape'=>false));  ?> 
			</td>
			<td>
				<?php echo $data['Contact']['linkTime']; ?>
				<?php //echo $html->link( $data['Contact']['projectCompany'], '/channelmanages/channelmanagemessage/'.$data['Companymanage']['id'], null,null,
					//array('escape'=>false));  ?> 
			</td>
			<td><?php echo $data['Contact']['context']; ?></td>
			<td><?php echo $data['Contact']['memo']; ?></td>
		</tr> 
	<?php endforeach; ?>  
</table>
</div>
<?php echo $form->end();?>
<!-- 项目状态列表 -->

